package com.example.controler;

import android.app.PendingIntent;
import android.telephony.SmsManager;

public class SmsSender {
	private static SmsSender instance;

	public static SmsSender getInstance() {

		if (null == instance) {
			instance = new SmsSender();
		}
		return instance;
	}

	public void sendSMS(String address, String message, PendingIntent intent) {
		SmsManager sms = SmsManager.getDefault();
		sms.sendTextMessage(address, null, message, intent, null);
	}
}
